<?php
/**
 * root
 */
define('ROOT', $_SERVER['DOCUMENT_ROOT'] . '/');

/**
 * common include 
 */
include_once ROOT . 'entries/common/configs.php';
include_once ROOT . 'entries/common/classes.php';


/**
 * port restful
 */
include_once ROOT . 'classes/port/restful/param.php';
include_once ROOT . 'classes/port/restful/restful.php';
include_once ROOT . 'classes/port/restful/safety.php';
include_once ROOT . 'classes/port/restful/session.php';
include_once ROOT . 'classes/port/restful/trace.php';
include_once ROOT . 'classes/third/wechat/official/auth.php';
include_once ROOT . 'classes/common/result/res.php';

$session = new Session();
$session->init();

$user = $session->getItem('user');
if(!$user){
    End::eIllegal("请您登录!");
}

